package com.example.Ordermodule;

import java.math.BigDecimal;

public abstract class OrderItemm {
    protected Integer productId;
    protected int quantity;
    public OrderItemm() {
    }

    // 计算订单项总金额并返回
    public abstract BigDecimal calculatePrice();

    public Integer getProductId() {
        return this.productId;
    }

    public int getQuantity() {
        return this.quantity;
    }

    public void setProductId(Integer productId) {
        this.productId = productId;
    }

    public void setQuantity(int quantity) {
        this.quantity = quantity;
    }


}

